﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SimpleActor
{
    /// <summary>
    /// Represents an actor.
    /// </summary>
    public interface IActor
    {
        /// <summary>
        /// Starts actor thread.
        /// </summary>
        /// <returns>The task that represents the asynchronous <see cref="IActorServant.OnStart"/>.</returns>
        Task Start();

        /// <summary>
        /// Stops actor thread.
        /// </summary>
        /// <returns>The task that represents the asynchronous <see cref="IActorServant.OnStop"/>.</returns>
        Task Stop();
    }
}
